import 'dart:io';

import 'package:leader_help/value/topcolors.dart';
import 'package:image_pickers/image_pickers.dart';
import 'package:get/get.dart';

import 'state.dart';

class SetupLogic extends GetxController {
  final SetupState state = SetupState();





  ///选择多张图片 Select multiple images
  selectImages() async {
    // List<Media> _listImagePaths = await ImagePickers.pickerPaths(
    //     galleryMode: GalleryMode.image,
    //     selectCount: 1,
    //     showGif: true,
    //     showCamera: true,
    //     compressSize: 500,
    //     uiConfig: UIConfig(uiThemeColor: TopColors.main_color),
    //     cropConfig: CropConfig(enableCrop: true, width: 1, height: 1));
    //
    // if (_listImagePaths.isNotEmpty) {
    //   state.imgPath = _listImagePaths[0].path;
    //   update();
    // }
  }
}
